 

#if !defined handplayheadfile 
#define handplayheadfile 

#include "g:\c\include\kmotion.h"
void handplay(); 
void putpad(char*title); 

void handplay() 
{ 
int i=0,n,freq; 
int cin=0,plc=-1; 
putpad("Handing Player"); 
while(cin!=27) 
{ 
if(i) 
{ 
int n; 
for(n=0;n<5000;n++) 
{ 
if(kbhit())break; 
delay(100); 
} 
} 
else i=1; 
nosound(); 
keyup(plc); 
cin=getch(); 
i=change(cin,&freq,&plc); 
keydn(plc); 
sound(freq); 
} 
nosound(); 
} 
void putpad(char*title) 
{ 
int n; 
setfillstyle(1,color[9]); 
bar(0,0,640,480); 
menupad(10,10,629,469,3); 
winrect(50,50,589,300); 
for(n=0;n<33;n++) 
{ 
keyup(n); 
wordup(n); 
} 
setcolor(color[15]); 
outtextxy(18,18,title); 
settextjustify(1,2); 
outtextxy(320,380,"Enter Esc to return..."); 
setcolor(color[8]); 
outtextxy(319,379,"Enter Esc to return..."); 
settextjustify(0,2); 
} 


#endif 
/*end of handplay.h*/ 